<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
   String abc = (String)request.getAttribute("abc");
	%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%
if(abc!=null && abc.equals("error")){%>
	<script type="text/javascript">
alert("登陆失败！");
</script>
<%}%>

</head>

<body>
<form action="/loginServlet"  method="post">
用户名:<input name="username"    type="text" /><br/>
密     码:<input name="password" type="password" /><br/>
<input type="submit"  value="提交"/><input type="reset" value="取消"/>
</form>

</body>
</html>